### This project replicates the analyses reported in Toshkov and Krouwel (2022) 'Beyond the U-Curve: Citizen Preferences on European Integration in Multidimensional Political Space' in European Union Politics 
# Libraries and functions -------------------------------------------------------------------------
library(tidyverse)
library(haven)
library(data.table)
library(ggplot2)
library(GGally)
library(psych)
library(nFactors)
library(rgl)
library(plot3D)
library(rayshader)
library(plotly)
library(rayshader)
library(patchwork)
library(ggridges)
library(forcats)
library(viridis)
library(htmlTable)